#ifndef VIDEODISPLAYSINGLE_H
#define VIDEODISPLAYSINGLE_H

#include <QWidget>
#include <QHBoxLayout>+++++++++
#include <QResizeEvent>
#include <QLabel>

namespace Ui {
class VideoDisplaySingle;
}

class VideoDisplaySingle : public QWidget
{
    Q_OBJECT

public:
    explicit VideoDisplaySingle(QWidget *parent = nullptr);
    ~VideoDisplaySingle();

    void setSize(const qint32 width, const qint32 height);
    void setWidget(qint32 image_x, qint32 image_y, qint32 image_width, qint32 image_height);

public slots:
    void showImage(const QImage &image);

protected:
    void resizeEvent(QResizeEvent *event);

private:
    Ui::VideoDisplaySingle *ui;

    QWidget *image_widget_{nullptr};
    QHBoxLayout *image_layout_{nullptr};
    QLabel *image_{nullptr};

    int image1_width_;
    int image1_height_;

};

#endif // VIDEODISPLAYSINGLE_H
